let mongoose=require('./db')
let listSchema=mongoose.Schema({
    name:String,
    state:{
        type:Boolean,
        default:false
    },
    code:String,
    department:String,
    address:String,
    phone:String,
    isSwitch:Boolean,
    head:String,
    remark:String,
    isLock:{
        type:Boolean,
        default:false
    }
})
let listModel=mongoose.model('list',listSchema,'list')
module.exports={listModel}